body {
    height: 1000px;
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a {
    font-size: 12px;
    text-decoration: none;
}

div {
    font-size: 12px;
    box-sizing: border-box;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    /* 固定定位的盒子应该有固定宽度，跟父亲没有关系，只和屏幕有关系 */
    width: 100%;
    max-width: 540px;
    min-width: 320px;
    height: 44px;
    display: flex;
    align-items: center;
    background-color: #f6f6f6;
    border-bottom: 1px solid #ccc;
}

.search {
    flex: 1;
    line-height: 26px;
    background-color: white;
    border-radius: 10px;
    margin: 0 10px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

.search::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) -59px -279px;
    background-size: 104px auto;
    margin: 5px 5px 0;
    vertical-align: text-bottom;
}

.user {
    width: 44px;
    height: 44px;
    text-align: center;
    color: #099fde;
}

.user::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png) -59px -194px;
    background-size: 104px auto;
    margin: 2px auto 0;
}

.focus img {
    padding-top: 44px;
    width: 100%;
}

.nav {
    height: 64px;
    background-color: #fff;
    border-radius: 8px;
    margin: 5px 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.nav li {
    flex: 1;
    text-align: center;
}

.nav a {
    display: flex;
    flex-flow: column;
    align-items: center;
    color: #333;
}

.nav span[class^='nav_icon'] {
    width: 32px;
    height: 32px;
    background: url(../images/localnav_bg.png);
    background-size: 32px auto;
}

.nav span.nav_icon1 {
    background-position: 0 0;
}

.nav span.nav_icon2 {
    background-position: 0 -32px;
}

.nav span.nav_icon3 {
    background-position: 0 -64px;
}

.nav span.nav_icon4 {
    background-position: 0 -96px;
}

.nav span.nav_icon5 {
    background-position: 0 -128px;
}

nav {
    border-radius: 10px;
    margin: 5px 4px;
    overflow: hidden;
}

nav a {
    color: white;
}

.nav_comm {
    height: 88px;
    display: flex;
}

.nav_comm:nth-child(1) {
    background: -webkit-linear-gradient(left, #ea5a55, #fa994d);
}

.nav_comm:nth-child(2) {
    background: -webkit-linear-gradient(left, #4B9BED, #53BCED);
}

.nav_comm:nth-child(3) {
    background: -webkit-linear-gradient(left, #34C2A9, #6CD559);
}

.nav_comm:nth-child(-n+2) {
    margin-bottom: 2px;
}

.nav_item {
    display: flex;
    flex-flow: column;
    flex: 1;
}

.nav_item a {
    flex: 1;
    text-align: center;
    line-height: 44px;
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}

.nav_item:first-child {
    background: url(../images/hotel.png) no-repeat bottom center;
    background-size: 121px auto;
}

.nav_item:nth-child(-n+2) {
    border-right: 1px solid white;
}

.nav_item:nth-child(n+2) a:nth-child(1) {
    border-bottom: 1px solid white;
}

.nav2 {
    background-color: #fff;
    border-radius: 8px;
    margin: 3px 4px;
    display: flex;
    align-items: center;
    flex-flow: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.nav2 li {
    flex: 20%;
    text-align: center;
}

.nav2 a {
    display: flex;
    flex-flow: column;
    align-items: center;
    color: #333;
    padding: 8px 0;
}

.nav2 span[class^='nav_icon'] {
    width: 28px;
    height: 28px;
    background: url(../images/subnav-bg.png);
    background-size: 28px auto;
}

.nav2 span.nav_icon1 {
    background-position: 0 0;
}

.nav2 span.nav_icon2 {
    background-position: 0 -28px;
}

.nav2 span.nav_icon3 {
    background-position: 0 -56px;
}

.sales_box {
    background: white;
    border-top: 1px solid #ccc;
    margin: 5px 4px;
}

.sales_hd {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.sales_hd h2 {
    text-indent: -999px;
    overflow: hidden;
}

.sales_hd h2 {
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
}

.sales_hd a {
    color: white;
    background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
    padding: 2px 20px 2px 10px;
    border-radius: 15px;
    position: relative;
}

.sales_hd a::after {
    position: absolute;
    width: 7px;
    height: 7px;
    top: 7px;
    right: 8px;
    content: "";
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}


/* flex实现方式 */

.sales_bd {
    /* overflow: hidden; */
    display: flex;
    flex-flow: wrap;
}

.sales_bd a {
    flex: 50%;
}

.sales_bd img {
    width: 100%;
}

.sales_bd a {
    box-sizing: border-box;
    border-right: 1px solid #ccc;
}

.sales_bd a:nth-last-child(n+3) {
    border-bottom: 1px solid #ccc;
}

.sales_bd a:nth-child(2n) {
    border-right: 1px solid transparent;
}


/* 浮动实现方式 */


/* .sales_bd a {
    width: 50%;
    float: left;
}

.sales_bd img {
    width: 100%;
}

.sales_bd a {
    box-sizing: border-box;
    border-right: 1px solid #ccc;
}

.sales_bd a:nth-last-child(n+3) {
    border-bottom: 1px solid #ccc;
}

.sales_bd a:nth-child(2n) {
    border-right: 1px solid transparent;
} */